//
//  WBDameViewController.swift
//  传智微博
//
//  Created by 董涛 on 2017/6/1.
//  Copyright © 2017年 江汉油田. All rights reserved.
//

import UIKit

class WBDameViewController: WBBassViewController {
    
    override func viewDidLoad() {
         super.viewDidLoad()
        title = "第 \(navigationController?.childViewControllers.count ?? 0)个"
    }
    
    func showTxet(){
        let vc = WBDameViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

    }
extension WBDameViewController{
    override func setupUI() {
        super .setupUI()
        navitem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: .plain, target: self, action: #selector(showTxet))
    }
}
